const express = require('express')
var Tiff = require('tiff.js');
var fs = require('fs');

var path = require('path')

var serveStatic = require('serve-static')
const rootPath = path.join(__dirname, 'public')


const app = express()
const port = 3000

app.use(serveStatic(rootPath))

var ejs = require('ejs');
app.engine('html', ejs.__express);
app.set('view engine', 'html');


app.get('/', (req, res) => {
    res.render("index")
})

app.listen(port, () => {
  console.log(`http://localhost:3000/`)
})